/**
 * @require navBar
 * @require LeftCtrol
 */
define(function(require, exports, module) {

    var NavBar = require('./navBar');
    var LeftCtrol = require('./leftCtrol');

    var ReftCtrol = require('./rightCtrol');
    function Channel(opt) {
        if (!(this instanceof Channel)) {
            return new Channel(opt);
        }
    }

    Channel.prototype = {
        init:function () {
            // 页头操作
            this.setNavBar();


            //左侧菜单操作
            this.LeftCtrolFn();


            //右侧内容操作
            this.RightCtrolFn();
        },
        /**
         * 页头导航相关操作
         */
        setNavBar: function () {
            var N = new NavBar();
            N.init();
        },
        /**
         * 左侧菜单操作
         */
         LeftCtrolFn: function () {
             var L = new LeftCtrol();
             L.init();
         },
         RightCtrolFn: function () {
            var R = new ReftCtrol();
            R.init();
         }
        
    }
    module.exports = Channel;
});